<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/23
 * Time: 16:46
 * 添加校内通知
 */
$osn_content              = $route->bodyParams['osn_content'];               //通知内容
$osn_oesid                = $route->bodyParams['osn_oesid'];                 //关联机构id
$osn_title                = $route->bodyParams['osn_title'];                 //通知标题


//写入数组
$insertArr = [
    'osn_content'              => $osn_content,
    'osn_oesid'                => $osn_oesid,
    'osn_title'                => $osn_title,
    'osn_create_time'         => time(),
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_school_notification",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );